const menus = [
  {
    title: '监控管理',
    route: '/dashboard/monitor',
    icon: 'dashboard',
    name: 'dashboard',
    code: 'dashboard'
  },
  {
    title: '个人信息',
    route: '/personal/personalManage',
    icon: 'robot',
    name: 'personal',
    code: 'personal'
  },
  {
    title: '权限管理',
    icon: 'lock',
    name: 'auth',
    code: 'auth',
    children: [
      {
        title: '菜单管理',
        route: '/menu/list',
        icon: 'menu-unfold',
        pname: 'system',
        name: 'auth',
        code: 'auth:menu'
      },
      {
        title: '角色管理',
        route: '/role/roleManage',
        icon: 'solution',
        name: 'team',
        pname: 'auth',
        code: 'auth:role'
      },
      {
        title: '用户管理',
        route: '/user/userManage',
        icon: 'user',
        name: 'user',
        pname: 'auth',
        code: 'auth:user'
      },
      {
        title: '公司管理',
        route: '/company/companyManage',
        icon: 'bars',
        name: 'company',
        pname: 'auth',
        code: 'auth:company'
      }
    ]
  },
  {
    title: '设备管理',
    route: '/equipment/list',
    icon: 'disconnect',
    name: 'equipment',
    code: 'equipment'
  },
  {
    title: '数据管理',
    icon: 'book',
    name: 'chart',
    code: 'chart',
    children: [
      {
        title: '设备数据',
        route: '/chart/equipData',
        icon: 'bar-chart',
        name: 'equipdata',
        pname: 'chart',
        code: 'chart:data'
      },
      {
        title: '设备图表',
        route: '/chart/lineData',
        icon: 'line-chart',
        name: 'linedata',
        pname: 'chart',
        code: 'chart:linedata'
      },
      {
        title: '数据模版',
        route: '/chart/dataTemplate',
        icon: 'fund',
        name: 'template',
        pname: 'chart',
        code: 'chart:template'
      },
      {
        title: '触发器管理',
        route: '/chart/monitorManage',
        icon: 'flag',
        name: 'monitor',
        pname: 'chart',
        code: 'chart:monitor'
      }
    ]
  },
  {
    title: '平台管理',
    icon: 'global',
    name: 'system',
    code: 'system',
    children: [
      {
        title: '消息管理',
        icon: 'message',
        name: 'message',
        pname: 'system',
        code: 'system:message',
        children: [
          {
            title: '发送消息',
            route: '/message/list',
            icon: 'user',
            name: 'selfMessage',
            pname: 'message',
            code: 'system:message:self'
          },
          {
            title: '接收消息',
            route: '/message/sendList',
            icon: 'reconciliation',
            name: 'sendmessage',
            pname: 'message',
            code: 'system:message:receive'
          }
        ]
      },
      {
        title: '日志管理',
        route: '/log/list',
        icon: 'book',
        pname: 'system',
        name: 'log',
        code: 'system:log'
      },
      {
        title: '异常日志',
        route: '/warn/list',
        icon: 'alert',
        pname: 'system',
        name: 'warnlog',
        code: 'system:warnlog'
      }
    ]
  }
];

export default menus;
